export default class player extends Laya.Script {
    owner=((this.owner as Laya.Script))
    constructor() { 
        super(); 
        // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    }

    onTriggerEnter(other){
        if(other.label=="qiu"){
            this.owner.texture="res/胡桃2.png"
            Laya.SoundManager.playSound("res/sound/player.wav",1);
        }
        if(other.label=="di"){
            this.owner.texture="res/胡桃1.png"
        }
    
    }
    onTriggerExit(other){
        if(other.label=="qiu"){
            this.owner.texture="res/胡桃1.png"
        }
    
    }
}